# Core模块
file(GLOB CORE_SOURCES *.cpp)
file(GLOB CORE_HEADERS *.h)

add_library(core ${CORE_SOURCES} ${CORE_HEADERS})
target_include_directories(core PUBLIC 
    ${CMAKE_CURRENT_SOURCE_DIR}/../../include/core
)

# 依赖项
find_package(Poco REQUIRED COMPONENTS Foundation Util)
target_link_libraries(core PRIVATE 
    Poco::Foundation
    Poco::Util
)

# 安装规则
install(TARGETS core DESTINATION lib)
install(FILES ${CORE_HEADERS} DESTINATION include/core)